export function tidyFormParam (obj) {
  let param = {}

  for (let key in obj) {
    if (obj[key] !== '') {
      param[key] = obj[key]
    }
  }

  return param
}

export function tidyFormParamWithPage (obj, pageParam) {
  let param = tidyFormParam(obj)
  
  if(typeof(pageParam.page) !== "undefined"){
		param.page = pageParam.page;
	}
	if(typeof(pageParam.rows) !== "undefined"){
		param.rows = pageParam.rows;
	}
  
  return param
}